package com.neusoft.oa.controller;


import com.neusoft.oa.pojo.Percontact;
import com.neusoft.oa.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
@CrossOrigin
public class UserController {

    @Autowired
    IUserService userService;

    @RequestMapping("login")
    public Percontact check(Percontact percontact){
        return userService.checkUser(percontact);
    }
}
